module.exports={
    createGuid: function () {
    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
      let r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
      return v.toString(16);
    });
  },//随机生成guid
    getNowTime:function () {
      let nowdate = (new Date().getTime())/1000;
        return nowdate.toFixed(0);
    }
}